package com.cs.peanut.base_app.service;

/**
 * Created by zack on 2018/3/14.
 */

public class AppError {
    private int code;
    private String message;

    public AppError(){
        this(0,null);
    }
    public AppError(int code, String message) {
        this.code = code;
        this.message = message;
    }
    public AppError(String message) {
        this(0,message);
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return message + "";
    }
}
